import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';
import 'package:member_center_sdk_example/components/loading_button.dart';

import 'action.dart';
import 'state.dart';

Widget buildView(
    MemberLoginState state, Dispatch dispatch, ViewService viewService) {
  return Scaffold(
    appBar: AppBar(
      title: const Text('登录'),
    ),
    body: state.isSmsLogin
        ? viewService.buildComponent("smsLogin")
        : viewService.buildComponent("pwdLogin"),
  );
}
